<HTML><HEAD><TITLE>view_graph(+Graph, +Options, ?HandleFile)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(graphviz)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>view_graph(+Graph, +Options, ?HandleFile)</H1>
Display a given graph in an existing window
<DL>
<DT><EM>Graph</EM></DT>
<DD>A graph structure
</DD>
<DT><EM>Options</EM></DT>
<DD>A list of Option:Value pairs
</DD>
<DT><EM>HandleFile</EM></DT>
<DD>String or variable
</DD>
</DL>
<H2>Description</H2>

    This predicate takes a graph, applies one of the graphviz layout
    routines to it, and displays the result in a viewer window.  If
    the HandleFile option is a variable it will be bound the name of
    the file which the viewer is rendering.  By calling this predicate
    again with the same file name, the viewer will re-load the file
    WITHOUT creating a new window.<P>

    This predicate can be very usefull for displaying graph structures
    which change over time.<P>

    NOTE: This predicate will sleep for one second to give the viewer
    a chance to notice that the file has changed and to re-read it.

    <P>
    
<H3>Modules</H3>
This predicate is sensitive to its module context (tool predicate, see @/2).
<H2>See Also</H2>
<A HREF="../../lib/graphviz/view_graph-1.html">view_graph / 1</A>, <A HREF="../../lib/graphviz/view_graph-2.html">view_graph / 2</A>, <A HREF="../../lib/graph_algorithms/index.html">library(graph_algorithms)</A>
</BODY></HTML>
